<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>03-插件化案例-计算器</title>
</head>

<body>
  <div class="j-calculator1">
    <p>
      <input type="text" placeholder="请输入第一个数字">
      <input type="text" placeholder="请输入第二个数字">
    </p>

    <p>
      得出的结果：<span class="result">0</span>
    </p>

    <p>
      <button data-type="plus">+</button>
      <button data-type="minus"> - </button>
      <button data-type="mul">*</button>
      <button data-type="dir">/</button>
    </p>
  </div>

  <hr>

  <div class="j-calculator2">
    <p>
      <input type="text" placeholder="请输入第一个数字">
      <input type="text" placeholder="请输入第二个数字">
    </p>

    <p>
      得出的结果：<span class="result">0</span>
    </p>

    <p>
      <button data-type="plus">+</button>
      <button data-type="minus"> - </button>
      <button data-type="mul">*</button>
      <button data-type="dir">/</button>
    </p>
  </div>

  <script src="./js/index.js"></script>
</body>

</html>